package models

type SearchInfo struct {
	Code int `json:"code" required:"true" description:"状态码"`
	Message string `json:"err" required:"true" description:"错误信息 默认值为空字符串"`
	SubscribeInfo *SubscribeInfo `json:"subscribes" required:"true" description:"订阅Items"`
	ArticleInfo *ArticleInfo `json:"articles" required:"true" description:"文章Items"`
	VideoInfo *VideoInfo `json:"videos" required:"true" description:"视频Items"`
	ImgTxtInfo *ImgTxtInfo `json:"ImgTxts" required:"true" description:"图文Items"`
}

type SubscribeInfo struct {
	Data []*Subscribe `json:"data" required:"true" description:"Items"`
	CurPage int `json:"cur_pag" required:"true" description:"当前页 不分页时默认值为0"`
	Total int `json:"size" required:"true" description:"请求的条目"`
}

type ArticleInfo struct {
	Data []*Article `json:"data" required:"true" description:"Items"`
	CurPage int `json:"cur_pag" required:"true" description:"当前页 不分页时默认值为0"`
	Total int `json:"size" required:"true" description:"请求的条目"`
}

type VideoInfo struct {
	Data []*Video `json:"data" required:"true" description:"Items"`
	CurPage int `json:"cur_pag" required:"true" description:"当前页 不分页时默认值为0"`
	Total int `json:"size" required:"true" description:"请求的条目"`
}

type ImgTxtInfo struct {
	Data []*ImgTxt `json:"data" required:"true" description:"Items"`
	CurPage int `json:"cur_pag" required:"true" description:"当前页 不分页时默认值为0"`
	Total int `json:"size" required:"true" description:"请求的条目"`
}

type Subscribe struct {
	Id int `json:"id" required:"true" description:"唯一id"`
	Title string `json:"title" required:"true" description:"标题"`
	IsSubscribe int `json:"is_subscribe" required:"false" description:"是否已经订阅，0没有，1订阅"`
	IconUrl string `json:"icon_url" required:"false" description:"icon地址"`
	SubscribeNum int `json:"sub_num" required:"false" description:"已订阅人数"`
}

type Article struct {
	Id int `json:"id" required:"true" description:"唯一id"`
	GzhId string `json:"gzh_id" required:"true" description:"公众号id"`
	Title string `json:"title" required:"true" description:"标题"`
	ImageUrl string `json:"image_url" required:"true" description:"图片地址"`
	Time string `json:"time" required:"true" description:"发布时间"`
	GzhName string `json:"gzh_name" required:"true" description:"公众号名称"`
	ArticleCategory string `json:"article_category" required:"true" description:"文章种类"`
	ContentUrl string `json:"content_url" required:"true" description:"文章的地址"`
	CommentNum int  `json:"comment_num" required:"true" description:"文章评论数"`
	IsPraise int `json:"praise" required:"true" description:"是否已经点赞，0未点赞，1已点赞，登陆用户需要返回"`
	IsCollect int `json:"collect" required:"true" description:"是否已经收藏，0未收藏，1已收藏，登陆用户需要返回"`
}

type Video struct {
	Id int `json:"id" required:"true" description:"唯一id"`
	ActiveNum int `json:"active_num" required:"false" description:"当前活跃人数"`
	Title string `json:"title" required:"true" description:"标题"`
	ImageUrl string `json:"image_url" required:"false" description:"图片地址"`
	IsLive int `json:"is_live" required:"true" description:"0回放，1直播"`
}

type ImgTxt struct {
	Id int `json:"id" required:"true" description:"唯一id"`
	Title string `json:"title" required:"true" description:"标题"`
	ImageUrl string `json:"image_url" required:"false" description:"图片地址"`
	ActiveNum int `json:"active_num" required:"false" description:"当前活跃人数"`
	IsLive int `json:"is_live" required:"true" description:"0回放，1直播"`
}